<?php
namespace Core;
class Model{
    protected $db;
    // public $db;
    public function __construct()
    {
        $this->init();
    }
    // 链接数据库
    private function init(){
        $str=[
            "host"=>"127.0.0.1",
            "root"=>"root",
            "pwd"=>"123456",
            "database"=>"php07",
            "port"=>""
        ];
        $this->db=new Db($str);
    }
}
?>